#include "window.h"
#include "text.h"
#include "pointeur.h"
#include "information.h"


int main(int argc, char** argv)
{
  Window *win=WindowCreator::createWindow("toto",0,0,250,250,&argc,argv);
   
  //Du texte 
  Text text_entree(GLUT_BITMAP_TIMES_ROMAN_24,new string(" ENTREE "));
  Material *m = MaterialCreator::createGold();
  text_entree.setMaterial(m);
  text_entree.setPosition(5.0,5.0,0.0);    


  //Un pointeur
  string * pouet2 = new string("plopouet");
  Pointeur * p = new Pointeur(1,pouet2);
  p->setPosition (5.0,5.0,0.0);


  //Du texte 1
  string * parking = new string("PARKING");
  Material *m1 = MaterialCreator::createGold();
  Text text_parking(GLUT_BITMAP_TIMES_ROMAN_24, parking);
  text_parking.setMaterial(m1);
  text_parking.setPosition(5.0,5.0,0.0); 


  //Information
  Information* info = new Information();
  info->setText(&text_entree);
  info->setVisibility(true);

  //Scene
  Scene scene;
  scene.addObjet(info);
  //scene.addObjet(&text_parking);
  scene.addObjet(p);


  //Boucle de simulation
  win->setScene(&scene);
  win->mainLoop();
  return 0;
}
